package com.zjl.spring.demo;

/**
 * @Auther: zhuangjl
 * @Date: 2021/11/11 14:41
 */
public class ThrowsDemo {

    public static void main(String[] args) {

        try {
            eat();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.println("method end");
    }

    public static void eat() throws Exception {

        int i = 1 / 0;
        System.out.println("eat method end");
    }
}
